﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ParticleEditor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new ParticleEditor());

            ParticleEditor p = new ParticleEditor();
            p.FormClosed += p.CloseFunction;
            p.Show();
            while (p.running)
            {
                p.Update();
                p.UpdateParticles();
                p.RenderParticles();
                Application.DoEvents();
            }
        }
    }
}
